<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2017/9/7
  Time: 15:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>

    <script>
        function reloadImage() {
            document.getElementById("imgCode").src = document
                    .getElementById("imgCode").src
                + "?nocache=" + new Date().getTime();
            //alert("run");
        }

    </script>
</head>
<body>
<form action="http://localhost:8080/verify.SafeCode" method="post">
    <label>用户名：</label><input type="text" name="name" placeholder="please input your name"/>
    <br/>
    <br/>
    <label>密码：</label><input type="password" name="password" placeholder="please input password"/><br>
    <%--<input style="background:red" type="submit" value="登录"/></form>--%>
    <label>验证码：</label><img id="imgCode" src="verify.SafeCode"/><br>

    <input type="text" name="inputcode" placeholder="请输入验证码（区分大小写）"><br>

    <input type="button" value="看不清" id="btn" onclick="reloadImage()">
    <input type="submit" value="提交">
</form>

<%--<form action="http://localhost:8080/verify.SafeCode" method="post">--%>
<%--<label>用户名：</label><input type="text" name="name" placeholder="please input your name"/>--%>
<%--<br/>--%>
<%--<br/>--%>
<%--<label>密码：</label><input type="password" name="password" placeholder="please input password"/>--%>
<%--<input style="background:red" type="submit" value="登录"/>--%>
<%--</form>--%>
</body>
</html>
